package com.yeyks.common.appcommon.param.account;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 启用进入账户输入参数
 * @author Administrator
 */
@ApiModel(description = "启用进入账户输入参数")
@Data
public class SetAccountValidParam implements Serializable {
    private static final long serialVersionUID = -6235424594072525215L;

    //token: eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFMyNTYiLCJ0eXAiOiJKV1QifQ.eyJ1c2VyX2lkIjoiMTQwMyIsImV4cCI6MTU2NDE5MDA5OSwiaWF0IjoxNTU1NTUwMDk5fQ.Mp3giwbLy-9glwDGtxDGG6lEuh95e0ReHoSt67_5Xd0
    //hotelId: 1803
    //id: 1803
    //valid: 1

    @ApiModelProperty("token的有效令牌")
    @NotBlank(message = "token不能为空")
    private String token;

    @ApiModelProperty(value = "版本号")
    private String version;

    @ApiModelProperty(value = "平台")
    private String platform;

    @ApiModelProperty("账户Id")
    @NotNull(message = "账户ID不能为空")
    private Integer accountId;

    @ApiModelProperty("是否可用.1可用, 0不可用")
    private Boolean valid;
}
